package com.kis.service

/**
 * Created by wongloong on 16-12-6.
 */
interface BaseService<T, PK> {
    @Throws(Exception::class)
    fun add(t: T): Boolean

    @Throws(Exception::class)
    fun select(id: PK): T

    @Throws(Exception::class)
    fun saveOrUpdate(t: T): Boolean

    @Throws(Exception::class)
    fun queryAll(t: T): List<T>
}